package com.zut.hospital.entity.staff;

import java.util.ArrayList;
import java.util.List;

public class UserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOfcIdIsNull() {
            addCriterion("ofc_id is null");
            return (Criteria) this;
        }

        public Criteria andOfcIdIsNotNull() {
            addCriterion("ofc_id is not null");
            return (Criteria) this;
        }

        public Criteria andOfcIdEqualTo(Integer value) {
            addCriterion("ofc_id =", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdNotEqualTo(Integer value) {
            addCriterion("ofc_id <>", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdGreaterThan(Integer value) {
            addCriterion("ofc_id >", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ofc_id >=", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdLessThan(Integer value) {
            addCriterion("ofc_id <", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdLessThanOrEqualTo(Integer value) {
            addCriterion("ofc_id <=", value, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdIn(List<Integer> values) {
            addCriterion("ofc_id in", values, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdNotIn(List<Integer> values) {
            addCriterion("ofc_id not in", values, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdBetween(Integer value1, Integer value2) {
            addCriterion("ofc_id between", value1, value2, "ofcId");
            return (Criteria) this;
        }

        public Criteria andOfcIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ofc_id not between", value1, value2, "ofcId");
            return (Criteria) this;
        }

        public Criteria andAdNumIsNull() {
            addCriterion("ad_num is null");
            return (Criteria) this;
        }

        public Criteria andAdNumIsNotNull() {
            addCriterion("ad_num is not null");
            return (Criteria) this;
        }

        public Criteria andAdNumEqualTo(String value) {
            addCriterion("ad_num =", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumNotEqualTo(String value) {
            addCriterion("ad_num <>", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumGreaterThan(String value) {
            addCriterion("ad_num >", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumGreaterThanOrEqualTo(String value) {
            addCriterion("ad_num >=", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumLessThan(String value) {
            addCriterion("ad_num <", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumLessThanOrEqualTo(String value) {
            addCriterion("ad_num <=", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumLike(String value) {
            addCriterion("ad_num like", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumNotLike(String value) {
            addCriterion("ad_num not like", value, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumIn(List<String> values) {
            addCriterion("ad_num in", values, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumNotIn(List<String> values) {
            addCriterion("ad_num not in", values, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumBetween(String value1, String value2) {
            addCriterion("ad_num between", value1, value2, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdNumNotBetween(String value1, String value2) {
            addCriterion("ad_num not between", value1, value2, "adNum");
            return (Criteria) this;
        }

        public Criteria andAdPasswordIsNull() {
            addCriterion("ad_password is null");
            return (Criteria) this;
        }

        public Criteria andAdPasswordIsNotNull() {
            addCriterion("ad_password is not null");
            return (Criteria) this;
        }

        public Criteria andAdPasswordEqualTo(String value) {
            addCriterion("ad_password =", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordNotEqualTo(String value) {
            addCriterion("ad_password <>", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordGreaterThan(String value) {
            addCriterion("ad_password >", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("ad_password >=", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordLessThan(String value) {
            addCriterion("ad_password <", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordLessThanOrEqualTo(String value) {
            addCriterion("ad_password <=", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordLike(String value) {
            addCriterion("ad_password like", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordNotLike(String value) {
            addCriterion("ad_password not like", value, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordIn(List<String> values) {
            addCriterion("ad_password in", values, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordNotIn(List<String> values) {
            addCriterion("ad_password not in", values, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordBetween(String value1, String value2) {
            addCriterion("ad_password between", value1, value2, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdPasswordNotBetween(String value1, String value2) {
            addCriterion("ad_password not between", value1, value2, "adPassword");
            return (Criteria) this;
        }

        public Criteria andAdRemarkIsNull() {
            addCriterion("ad_remark is null");
            return (Criteria) this;
        }

        public Criteria andAdRemarkIsNotNull() {
            addCriterion("ad_remark is not null");
            return (Criteria) this;
        }

        public Criteria andAdRemarkEqualTo(String value) {
            addCriterion("ad_remark =", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkNotEqualTo(String value) {
            addCriterion("ad_remark <>", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkGreaterThan(String value) {
            addCriterion("ad_remark >", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("ad_remark >=", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkLessThan(String value) {
            addCriterion("ad_remark <", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkLessThanOrEqualTo(String value) {
            addCriterion("ad_remark <=", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkLike(String value) {
            addCriterion("ad_remark like", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkNotLike(String value) {
            addCriterion("ad_remark not like", value, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkIn(List<String> values) {
            addCriterion("ad_remark in", values, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkNotIn(List<String> values) {
            addCriterion("ad_remark not in", values, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkBetween(String value1, String value2) {
            addCriterion("ad_remark between", value1, value2, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdRemarkNotBetween(String value1, String value2) {
            addCriterion("ad_remark not between", value1, value2, "adRemark");
            return (Criteria) this;
        }

        public Criteria andAdPowerIsNull() {
            addCriterion("ad_power is null");
            return (Criteria) this;
        }

        public Criteria andAdPowerIsNotNull() {
            addCriterion("ad_power is not null");
            return (Criteria) this;
        }

        public Criteria andAdPowerEqualTo(Integer value) {
            addCriterion("ad_power =", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerNotEqualTo(Integer value) {
            addCriterion("ad_power <>", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerGreaterThan(Integer value) {
            addCriterion("ad_power >", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerGreaterThanOrEqualTo(Integer value) {
            addCriterion("ad_power >=", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerLessThan(Integer value) {
            addCriterion("ad_power <", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerLessThanOrEqualTo(Integer value) {
            addCriterion("ad_power <=", value, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerIn(List<Integer> values) {
            addCriterion("ad_power in", values, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerNotIn(List<Integer> values) {
            addCriterion("ad_power not in", values, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerBetween(Integer value1, Integer value2) {
            addCriterion("ad_power between", value1, value2, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdPowerNotBetween(Integer value1, Integer value2) {
            addCriterion("ad_power not between", value1, value2, "adPower");
            return (Criteria) this;
        }

        public Criteria andAdNameIsNull() {
            addCriterion("ad_name is null");
            return (Criteria) this;
        }

        public Criteria andAdNameIsNotNull() {
            addCriterion("ad_name is not null");
            return (Criteria) this;
        }

        public Criteria andAdNameEqualTo(String value) {
            addCriterion("ad_name =", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotEqualTo(String value) {
            addCriterion("ad_name <>", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameGreaterThan(String value) {
            addCriterion("ad_name >", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameGreaterThanOrEqualTo(String value) {
            addCriterion("ad_name >=", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLessThan(String value) {
            addCriterion("ad_name <", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLessThanOrEqualTo(String value) {
            addCriterion("ad_name <=", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLike(String value) {
            addCriterion("ad_name like", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotLike(String value) {
            addCriterion("ad_name not like", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameIn(List<String> values) {
            addCriterion("ad_name in", values, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotIn(List<String> values) {
            addCriterion("ad_name not in", values, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameBetween(String value1, String value2) {
            addCriterion("ad_name between", value1, value2, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotBetween(String value1, String value2) {
            addCriterion("ad_name not between", value1, value2, "adName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}